package com.xiaomi.baidumap.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by Administrator on 16-8-30.
 */
public class Repo implements Serializable{

    /*
    *  "id": 29028775,
      "name": "react-native",
      "full_name": "facebook/react-native",
      "owner": {
        "login": "facebook",
        "id": 69631,
        "avatar_url": "https://avatars.githubusercontent.com/u/69631?v=3",
      },
      "description": "A framework for building native apps with React.",
      "stargazers_count": 33961,
      "forks_count": 7122,

    * */
    private int id;
    private String name;
  //如果名字不一样要实例化，因为要gson解析
    @SerializedName("full_name")
    private String fullName;


    private String description;
    @SerializedName("stargazers_count")
    private int stargazersCount;
    @SerializedName("forks_count")
    private int forksCount;

    private User owner;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getStargazersCount() {
        return stargazersCount;
    }

    public void setStargazersCount(int stargazersCount) {
        this.stargazersCount = stargazersCount;
    }

    public int getForksCount() {
        return forksCount;
    }

    public void setForksCount(int forksCount) {
        this.forksCount = forksCount;
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }
}
